.class public Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public a:Ljava/util/ArrayList;

.field public b:Lcom/waiqin365/lightwork/directory/b/r;

.field public c:Lcom/waiqin365/lightapp/kehu/share/a/d;

.field protected d:Landroid/widget/LinearLayout;

.field protected e:Landroid/widget/RelativeLayout;

.field protected f:Lcom/waiqin365/lightwork/directory/b/w;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/ImageView;

.field private l:Landroid/widget/RelativeLayout;

.field private m:Landroid/widget/RelativeLayout;

.field private n:Landroid/widget/RelativeLayout;

.field private o:Landroid/widget/EditText;

.field private p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private q:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

.field private r:Lcom/waiqin365/lightapp/kehu/c/l;

.field private s:Landroid/content/Context;

.field private t:Lcom/waiqin365/lightapp/view/NoNetView;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 10

    const/4 v9, 0x1

    const/16 v8, 0x8

    const/4 v7, 0x0

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v7}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v1, v8}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->c:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightwork/directory/b/r;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/b/r;->notifyDataSetChanged()V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->c:Ljava/lang/String;

    const-string/jumbo v1, ""

    const-string/jumbo v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v6

    array-length v6, v6

    if-le v6, v9, :cond_2

    const-string/jumbo v1, " "

    invoke-virtual {v5, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    aget-object v1, v1, v9

    :cond_2
    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    const/4 v6, -0x1

    if-ne v4, v6, :cond_3

    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_3

    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_3
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_4
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->c:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v2, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/directory/b/r;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/b/r;->notifyDataSetChanged()V

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v8}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->s:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)Lcom/waiqin365/lightapp/kehu/c/l;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->r:Lcom/waiqin365/lightapp/kehu/c/l;

    return-object v0
.end method

.method private c()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightwork/directory/af;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/directory/af;-><init>(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->r:Lcom/waiqin365/lightapp/kehu/c/l;

    return-void
.end method

.method private d()V
    .locals 5

    const v4, 0x7f0c06dc

    const/16 v2, 0x8

    const/4 v3, 0x0

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->t:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->t:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    const v0, 0x7f0c0705

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->k:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0707

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->g:Landroid/widget/TextView;

    const v0, 0x7f0c0708

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->h:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c06e1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->i:Landroid/widget/TextView;

    const v0, 0x7f0c06e0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->j:Landroid/widget/TextView;

    const v0, 0x7f0c06d7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->l:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->l:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c06d9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->m:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->h:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    :goto_0
    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->f:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f080761

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_1
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c06df

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const v0, 0x7f0c06e2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->q:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->q:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setTextView(Landroid/widget/TextView;)V

    const v0, 0x7f0c06d4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->d:Landroid/widget/LinearLayout;

    const v0, 0x7f0c06d5

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->e:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->q:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    new-instance v1, Lcom/waiqin365/lightwork/directory/ag;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/directory/ag;-><init>(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setOnTouchingLetterChangedListener(Lcom/waiqin365/lightapp/kehu/share/view/d;)V

    const v0, 0x7f0c06ac

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->o:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->o:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightwork/directory/ah;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/directory/ah;-><init>(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/r;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->s:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightwork/directory/b/r;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/b/w;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/r;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightwork/directory/ai;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/directory/ai;-><init>(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->p:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightwork/directory/aj;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/directory/aj;-><init>(Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->n:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->n:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "-1"

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/b/w;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    invoke-virtual {p0, v4}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_3
    invoke-virtual {p0, v4}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->f:Ljava/lang/String;

    goto/16 :goto_1
.end method


# virtual methods
.method protected a()V
    .locals 4

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "jsonStr"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "aclType"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    const-string/jumbo v0, "2"

    const-string/jumbo v3, "aclType"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/q;->a:Lcom/waiqin365/base/db/offlinedata/q;

    :goto_0
    iput-object v0, v2, Lcom/waiqin365/lightwork/directory/b/w;->c:Lcom/waiqin365/base/db/offlinedata/q;

    :cond_0
    :goto_1
    return-void

    :cond_1
    sget-object v0, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method protected a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V
    .locals 3

    if-eqz p1, :cond_1

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "EmpInfo"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "empid"

    iget-object v2, p1, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "empname"

    iget-object v2, p1, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->setResult(ILandroid/content/Intent;)V

    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/b/w;->d:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 p1, 0x0

    :cond_0
    iput-object p1, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->overridePendingTransition(II)V

    return-void
.end method

.method protected b()V
    .locals 6

    const/16 v5, 0x8

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->s:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v2, v2, Lcom/waiqin365/lightwork/directory/b/w;->c:Lcom/waiqin365/base/db/offlinedata/q;

    iget-object v3, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v3, v3, Lcom/waiqin365/lightwork/directory/b/w;->b:Z

    invoke-virtual {v1, v2, v3}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->c:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->b:Lcom/waiqin365/lightwork/directory/b/r;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/b/r;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    if-eqz p3, :cond_1

    const-string/jumbo v0, "EmpInfo"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "EmpInfo"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    goto :goto_0
.end method

.method public onBackPressed()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    goto :goto_0

    :sswitch_1
    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/c;-><init>()V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    goto :goto_0

    :sswitch_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->s:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "param"

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/16 v1, 0x64

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c06d7 -> :sswitch_2
        0x7f0c06d9 -> :sswitch_1
        0x7f0c0705 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    iput-object p0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->s:Landroid/content/Context;

    const v0, 0x7f03012d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/directory/b/w;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/w;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/w;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    :cond_0
    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/d;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->c:Lcom/waiqin365/lightapp/kehu/share/a/d;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->c()V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->d()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->r:Lcom/waiqin365/lightapp/kehu/c/l;

    invoke-static {p0, v2, v2, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    return-void

    :cond_1
    new-instance v0, Lcom/waiqin365/lightwork/directory/b/w;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/w;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectorySelectSingleModeActivity;->f:Lcom/waiqin365/lightwork/directory/b/w;

    goto :goto_0
.end method
